﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace PreContractWeb
{
    /// <summary>
    /// Summary description for AlertMessage
    /// </summary>
    public static class AlertMessage
    {
        public const string ExistedRecord = @"数据库中已包含了该记录，不能重复添加！\nItem already exists, can't be added!";

        public const string OperationSuccess = @"操作已成功！\nOperation is successful!";

        public const string TimeOut = @"会话过期,请重新登陆！\nCurrent session expired, please login again!";

        public const string UserNameOrPwdError = @"用户名或密码有误！\nUser name or password is not correct!";

        public const string UserNotExist = @"该用户不存在！\nUser does not exist!";

        public const string AccountNotActive = @"该用户账号未激活！\nUser account is not active!";

        public const string ActiveAccount = @"激活账号？\nActivate this user?";

        public const string NoMatchRecord = @"没有匹配的记录！\nNo matched item(s) found!";

        public const string NotChooseRecord = @"请先选择要操作的记录！\nPlease select item(s)?";

        public const string DeleteRecord = @"删除记录？\nDelete selected item(s)?";


        //Joan 2008-09-25 for report error message
        public const string NoEntityPermission = @"你没有查看相应人员主体的权限，请联系管理员!<br>You are not allowed to view the specific entity data, please contact the system admin!";

        public const string CloseDateNoSet = @"当月关帐日期未设置，请联系管理员!<br>Close date is not set for current month, please contact the system admin!";

        public const string DeadlineNoSet = @"报表截止日期未设置，请联系管理员!<br>Report deadline is not defined, please contact the system admin!";

        public const string NoAllowedReportData = @"没有相关数据权限，请联系管理员!<br>Not allowed to view data please contact the system admin!";

        public const string DownloadReport = @"请选择报表下载";

        public const string DownloadReportError = @"下载历史报表出错，请重试或者联系管理员!<br>Error occured when downloading report, please try again or contact the system admin!";

        public const string GetReportDataError = @"报表运行出错，请重试或者联系管理员!<br>Error occured when running report, please try again or contact the system admin!";

        public const string ExportReportError = @"报表导出出错，请重试或者联系管理员!<br>Error occured when exporting report, please try again or contact the system admin!";

        public const string SaveReportError = @"报表保存出错，请重试或者联系管理员!<br>Error occured when saving report, please try again or contact the system admin!";

        public const string NoAdminPermission = @"没有管理员权限，不能访问数据!<br>Only admin has permission to access data!";
        
        public const string NoRoleAdminPermission = @"没有角色管理员权限，不能访问数据!<br>Only role admin has permission to access data!";

        public const string NoFeedbackerPermission = @"没有合同反馈员权限，不能访问数据!<br>Only feedbacker has permission to access data!";
        //end

        //Edwin.fan 2008-9-27 for BD/BG error message
        public const string NotChooseBG = @"请先选择要关联的BG！\nPlease select item(s)!";
        public const string HasBD = @"有BD关联到此BG，无法失效！\nThere is one or more BD associated to this BG,you can't disable it.";
        public const string HasSortNumber = @"该排号已存在！\nThe sort number already exists!";

        public const string PreContractNotUnique = @"预合同不唯一. 请修改预合同编号或事业部.\n\nPreContract is not unique. Please change PreContractr No or PU.";

        public const string NoDataExist = @"数据库中暂无数据，请先设置。\nThere is no item in the database, please set one first.";

        public const string UniqueAdmin = @"当前用户是系统唯一的角色管理员. \n\nThe user is unique RoleAdmin in system.";


        public const string DataSame = @"转正的预合同的承诺转正金额,预计转正金额和最终转正金额必须相同.";

        public const string DateSame = @"转正的预合同的预计转正时间和最终转正时间必须相同.";

        public const string FinalDateNotEmpty= @"转正的预合同的最终转正时间不能为空.";

        public const string PromisedDateNotEmpty = @"承诺转正时间不能为空.\n\nCygnus Date can not be empty.";
    }

}